<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<th:block th:fragment="default">
  <script th:src="@{/jquery/jquery-1.11.1.js}"></script>
  <script th:inline="javascript">
    var path = [[${#httpServletRequest.getContextPath()}]];

    Date.prototype.format = function(format){
      var o = {
        "M+" : this.getMonth()+1, //month
        "d+" : this.getDate(), //day
        "H+" : this.getHours(), //hour
        "m+" : this.getMinutes(), //minute
        "s+" : this.getSeconds(), //second
        "q+" : Math.floor((this.getMonth()+3)/3), //quarter
        "S" : this.getMilliseconds() //millisecond
      }

      if(/(y+)/.test(format)) {
        format = format.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length));
      }

      for(var k in o) {
        if(new RegExp("("+ k +")").test(format)) {
          format = format.replace(RegExp.$1, RegExp.$1.length==1 ? o[k] : ("00"+ o[k]).substr((""+ o[k]).length));
        }
      }
      return format;
    }
  </script>
</th:block>

<th:block th:fragment="layui">
  <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all" />
  <script th:src="@{/layui/layui.all.js}" charset="utf-8"></script>
</th:block>

</html>